package com_4;

public class Test3 {
    public static void main(String[] args) {
        useTest(new Test() {
            @Override
            public void eat() {
                System.out.println("吃东西");
            }
        });

    }
    public  static void useTest( Test t){
        t.eat();
    }
}
